package io.api.modules.project.dao;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import io.admin.common.dao.BaseDao;
import io.api.modules.project.entity.AnchorEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-09
 */
@Mapper
public interface AnchorDao extends BaseDao<AnchorEntity> {

    int countByNameAndLineId(String name, Long lineId, Long anchorId);

    int countByLineId(Long lineId);

//    List<AnchorEntity> getList(@Param("ew") Wrapper<AnchorEntity> ew);
    List<AnchorEntity> getList(Map<String, Object> params);

    AnchorEntity getById(Long id);
}